分享商品检验
<h1>share taobao list</h1>
<?php if (count($this->paginator)): ?>
<table>
<?php foreach ($this->paginator as $item): ?>
  <tr>
	<td>
		<img alt="" src="<?php echo $item['picurl']; ?>" width="250px" height="250px" />
	</td>
	<td>
		<p>名称：<a href="<?php echo $item['taobao_url']?>"><?php echo $item['title']?></a></p>
		<p>价格：<?php echo $item['price']?> </p>
		<p>url spell：<input type="text" class="url_spell <?php echo $item['numiid']?> " value="<?php echo $item['url_spell']?> " size="80"/></p>
		<P>key words: <input type="text" class="key_words <?php echo $item['numiid']?> " size="80"/></P>
	</td>
	<td width="200px">
	<input type="radio" name="<?php echo $item['numiid']?>"  onclick="approveConfirm(1,<?php echo $item['numiid']?>)"/>同意
	<input type="radio" name="<?php echo $item['numiid']?>"  onclick="approveConfirm(2,<?php echo $item['numiid']?>)"/>不同意
	</td>  	
  </tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
<?php echo $this->paginationControl($this->paginator,
                                    'Sliding',
                                    'my_pagination_control.phtml'); ?>
<script>
function approveConfirm(approve,num_iid){
	if(2==approve){
		var str="approve="+approve+"&numIid="+num_iid;
	}
	if(1==approve){
		var str="approve="+approve+"&numIid="+num_iid+"&item_url_spell="+$(".url_spell."+num_iid).val()+"&item_keywords="+$(".key_words."+num_iid).val();
	}
	
	$.ajax({
		type: "GET",	
	  	url: "<?php echo $this->baseUrl(); ?>/admin/tao-bao-items/ajax-approve-confirm",
	  	data: str,
	  	success: success,
	  	error: error
	});
}



	function success(date){   
		alert(date);
	}
	function error(data){
		alert("error:"+data);
	}
</script>
                                    